package com.chenliwu.demo.base;

/**
 * @author chenliwu
 * @since 2022-02-07
 */
public class Demo {

    public Demo(){

    }

    public static void main(String[] args) {
        try {
            System.out.println("returnValue:" + func());
        } catch (Exception ex) {
            ex.printStackTrace();
            System.out.println("异常：" + ex.getMessage());
        }
    }

    static int func() throws Exception {
        for (int i = 1; i < 2; i++) {
            try {
                throw new Exception("func");
            } catch (Exception ex) {
                throw ex;
            } finally {
                continue;
            }
        }
        return 0;
    }

}
